<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<%=basePath%>js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/vue.min.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/layui/css/layui.css">
<script type="text/javascript" src="<%=basePath%>js/BaseUtile.js"></script>
<title>收货入库管理</title>
</head>
<body style="margin: 1%; height: 100%;">

	<div class="layui-tab layui-tab-brief" lay-filter="menuTab"
		style="height: 100%">
		<ul class="layui-tab-title">
			<li class="layui-this">确认收货</li>
			<li>商品入库</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show" style="height: 100%">
				<iframe id="receiveIframe"
					style="border: 0; height: 495px; width: 100%;"
					src="<%=basePath%>receiveMaterial.jsp"></iframe>
			</div>
			<div class="layui-tab-item">
				<iframe id="inStockIframe"
					style="border: 0; height: 495px; width: 100%;"
					src=""></iframe>
			</div>
		</div>
	</div>






	<script type="text/javascript" src="<%=basePath%>css/layui/layui.js"></script>
	<script>
		layui.use([ 'form', 'element' ], function() {
			var element = layui.element;
			element.on('tab(menuTab)', function(data) {
				if (data.index == 0) {
					$("#receiveIframe").attr("src",
							SERVER_PRE_URL + "receiveMaterial.jsp");
				} else {
					$("#inStockIframe").attr("src",
							SERVER_PRE_URL + "showInStockApply.jsp");
				}

			});

		});
	</script>
</body>
</html>